package com.project.service.impl;

import com.project.service.IUserService;
import org.springframework.stereotype.Service;

@Service //声明该类是个业务组件
public class UserServiceImpl implements IUserService {
    @Override
    public void add() {
        System.out.println("执行add");
    }

    @Override
    public void add2() {
        System.out.println("执行add2");
        int x = 1/0;
        System.out.println(x);
    }
}
